﻿Dipan.SanGuo.Page = new Object();

Dipan.SanGuo.Page.Fun=
{
    Initialize: function()
    {
        
    },
    resource: function()//资源
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Resource.resource();
        }
        
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/resource.js", true);
		
    },
    finance: function()//资源
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Finance.finance();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/finance.js", true);
    },
    technology: function()//科技
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Technology.technology();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/technology.js", true);
    },
    market: function()//
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Market.market();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/market.js", true);
    },
    official: function()//
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Official.official();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/official.js", true);
    },
    supply: function()//
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Supply.supply();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/supply.js", true);
    },
    manager: function()//太守
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.City.HideBuildTips();
            Dipan.SanGuo.Common.InitClose(1);
            Dipan.SanGuo.Page.Manager.manager();
        }
        Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Dipan.SanGuo.CityTents.js", false);
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/manager.js", true);
    },
    //////////////////////////////////////////////////军事
    troops:function()//军营
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.City.HideBuildTips();
            Dipan.SanGuo.Common.InitClose(1);
            Dipan.SanGuo.Page.Troops.troops();
        }
        Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Dipan.SanGuo.CityTents.js", false);
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/troops.js", true);
    },
    defence:function()//城防
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Defence.defence();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/defence.js", true);
    },
    alarm:function()//军事动向
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.City.HideBuildTips();
            Dipan.SanGuo.Common.InitClose(1);
            Dipan.SanGuo.Page.Alarm.alarm();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/alarm.js", true);
    },
    armament:function()//军事动向
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Armament.armament();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/armament.js", true);
    },
    task:function()//新手任务
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Task.task();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/task.js", true);
    },
    luan:function()//七蛮之乱
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Luan.luan();
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/luan.js", true);
    },
    today:function(id)
    {
        var Loader = new Dipan.SanGuo.Common.Loader();
        Loader.onsuccess = function()
        {
            Dipan.SanGuo.Page.Today.today(id);
        }
		Loader.js(Dipan.SanGuo.Common.StaticsServer + "/Statics/JavaScripts/Page/today.js", true);
    }
}
